<template>
  <div>
    <van-nav-bar
      title="公告"
      left-arrow
      @click-left="$router.back()"
    />
    <p v-if="text">{{text}}</p>
  </div>
</template>

<script>
export default {
  data () {
    return {
      text: ''
    }
  },
  mounted () {
    let text = this.$route.query.text
    this.text = text || '暂无公告！'
  },
  components: {}
}
</script>

<style lang="scss" scoped>
p {
  line-height: .24rem;
  font-size: 16px;
  padding: 0 .2rem;
  text-indent: 2em;
}
</style>
